﻿Public Class SalesBillWindow

    Private Sub CloseButton_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles CloseButton.Click
        Me.Close()
    End Sub

    Private Sub MinimizeButton_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles MinimizeButton.Click
        Me.WindowState = Windows.WindowState.Minimized
    End Sub

    Private Sub CancelButton_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles CancelButton.Click
        RemarksStackPanel.Visibility = Visibility.Visible
        TaxDiscountDataGrid.Visibility = Visibility.Collapsed
        TaxDiscountStackPanel.Visibility = Visibility.Collapsed
    End Sub

    Private Sub OtherChargesTextBlock_MouseLeftButtonDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles OtherChargesTextBlock.MouseLeftButtonDown
        RemarksStackPanel.Visibility = Visibility.Collapsed
        TaxDiscountDataGrid.Visibility = Visibility.Visible
        TaxDiscountStackPanel.Visibility = Visibility.Visible
    End Sub

    Private Sub SalesBillWindow_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles Me.MouseDown
        DragMove()
    End Sub
End Class
